package com.qd.common.panda.domain.entity.discount;

import com.cdqidi.util.page.BaseQuery;
import com.cdqidi.valid.group.DefaultGroup;
import com.cdqidi.valid.group.UpdateGroup;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 存储第三方优惠信息
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class ThirdPartyOfferDTO extends BaseQuery {

    /**
     * 主键
     */
    @NotNull(message = "平台标记", groups = UpdateGroup.class)
    private Integer platform;
    /**
     * 内容
     */
    @NotNull(message = "内容不能为空", groups = DefaultGroup.class)
    private String content;
    /**
     * 操作时间
     */
    private LocalDateTime operatorTime;

    @Override
    public void freeData() {
        this.platform = null;
        this.content = null;
        this.operatorTime = null;
        super.freeData();
    }
}
